package top.heue.utils.log

import top.heue.utils.log.base.IBaseHandler
import top.heue.utils.log.base.IBasePrinter

sealed interface ITaskPool {
    fun add(item: IBaseHandler<*>)
    fun remove(item: IBaseHandler<*>)
    fun add(item: IBasePrinter)
    fun remove(item: IBasePrinter)

    fun execute(logLevel: LogLevel, tag: String, vararg any: Any?)
    /** 将any通过handler转换为String形式*/
    fun format(vararg any: Any?): String
    fun print(logLevel: LogLevel, tag: String, string: String)
}